home *** CD-ROM | disk | FTP | other *** search
/ Power Programmierung 2 / Power-Programmierung CD 2 (Tewi)(1994).iso / gnu / djgpp / contrib / dvx / inc / x11 / converti.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-07-15  |  2.5 KB  |  59 lines

  1. /* $XConsortium: ConvertI.h,v 1.9 90/06/04 15:06:49 kit Exp $ */
  2. /* $oHeader: ConvertI.h,v 1.3 88/08/31 16:11:04 asente Exp $ */
  3. /***********************************************************
  4. Copyright 1987, 1988 by Digital Equipment Corporation, Maynard, Massachusetts,
  5. and the Massachusetts Institute of Technology, Cambridge, Massachusetts.
  6.  
  7.                         All Rights Reserved
  8.  
  9. Permission to use, copy, modify, and distribute this software and its 
  10. documentation for any purpose and without fee is hereby granted, 
  11. provided that the above copyright notice appear in all copies and that
  12. both that copyright notice and this permission notice appear in 
  13. supporting documentation, and that the names of Digital or MIT not be
  14. used in advertising or publicity pertaining to distribution of the
  15. software without specific, written prior permission.  
  16.  
  17. DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  18. ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
  19. DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
  20. ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  21. WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
  22. ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
  23. SOFTWARE.
  24.  
  25. ******************************************************************/
  26.  
  27. /**************************************************************
  28.  * Resource conversions
  29.  *
  30.  **************************************************************/
  31.  
  32. typedef struct _ConverterRec **ConverterTable;
  33.  
  34. extern void _XtTableAddConverter();
  35.     /* ConverterTable        table;        */
  36.     /* XrmRepresentation    from_type;      */
  37.     /* XrmRepresentation    to_type;        */
  38.     /* XtConverter          converter;      */
  39.     /* XtConvertArgList     convert_args;   */
  40.     /* Cardinal             num_args;       */
  41.     /* Boolean              new_style;      */
  42.     /* XtCacheType        cache_type;        */
  43.     /* XtDestructor         destructor;     */
  44.  
  45. extern Boolean _XtConvert();
  46.     /* Widget               widget;         */
  47.     /* XtAppContext         app;            */
  48.     /* XrmRepresentation    from_type       */
  49.     /* XrmValue             *from;          */
  50.     /* XrmRepresentation    to_type;        */
  51.     /* XrmValue             *to;            */  /* RETURN */
  52.  
  53. typedef struct _ConverterRec *ConverterPtr;
  54.  
  55. #define CONVERTHASHSIZE    ((unsigned)512)
  56. #define CONVERTHASHMASK    511
  57.  
  58. #define ProcHash(from_type, to_type) (2 * (from_type) + to_type)
  59.